package com.myapp.mobilesafe.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by lijie on 2016/5/7.
 */
public class BlackListOpenHelper extends SQLiteOpenHelper{

    public BlackListOpenHelper(Context ctx){
        super(ctx,"blacklist.db",null,1);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        String sql = "create table blacknumber (_id integer primary key autoincrement," +
                " number varchar(20), mode integer)";
        db.execSQL(sql);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
